import js from "@eslint/js";
import globals from "globals";
import pluginVue from "eslint-plugin-vue";
import standard from "eslint-config-standard";
import { defineConfig } from "eslint/config";

export default defineConfig([
  {
    files: ["**/*.{js,mjs,cjs,vue}"],
    plugins: { js }, 
    extends: ["js/recommended"], 
    languageOptions: { globals: globals.browser },
    rules: {
      // 在这里手动添加standard风格的规则，而不是通过extends导入
    }
  },
  pluginVue.configs["flat/essential"],
]);